<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <css file="__PUBLIC__/Css/Public.css"/>
    <script type="text/javascript">
        var content='{$goods.content}';
        window.UEDITOR_HOME_URL='__ROOT__/Data/ueditor/utf8-php/';
        window.onload=function(){
            window.UEDITOR_CONFIG.initialFrameHeight=400;
            window.UEDITOR_CONFIG.initialFrameWidth=1000;
            UE.getEditor('content').ready(function(){UE.getEditor('content').setContent(content);});

        }
    </script>
    <link href="__PUBLIC__/Css/main.css" rel="stylesheet" type="text/css" />
    <js file="__ROOT__/Data/ueditor/utf8-php/ueditor.config.js"/>
    <js file="__ROOT__/Data/ueditor/utf8-php/ueditor.all.min.js"/>
</head>
<body>
<h1>
    <span class="action-span"><a href="{:U(GROUP_NAME.'/Goods/EditPicture',array('id'=>$goods['id'],'name'=>$goods['name']))}">编辑商品图片</a></span>
    <span class="action-span1"><a href="">管理中心</a> </span><span id="search_id" class="action-span1"> &nbsp;&nbsp;&nbsp;&nbsp;编辑商品</span>
    <div style="clear:both"></div>
</h1>
<form action="{:U(GROUP_NAME.'/Goods/runEditGoods')}" method="post">
    <table class="table">
        <input type='hidden' name='id' maxlength="20" value='{$goods.id}'/>
        <tr>
            <td align="right">商品通用名:</td>
            <td >
                <input type="text" value="{$goods.name}" name="name">
            </td>
        </tr>
        <tr>
            <td align="right">商品货号:</td>
            <td >
                <input type="text" value="{$goods.goods_sn}" name="goods_sn">
            </td>
        </tr>
        <tr>
            <td align="right">商品分类:</td>
            <td >
                <select name="cate_id">
                    {$cate}
                </select>
            </td>
        </tr>
        <tr>
            <td align="right">库存:</td>
            <td >
                <input type="text" value="{$goods.num}" name="num">
            </td>
        </tr>
        <tr>
            <td align="right">排序值:</td>
            <td >
                <input type="text" value="{$goods.sort}" name="sort">
            </td>
        </tr>
        <tr>
            <td align="right">基本单位:</td>
            <td >
                <input type="text" value="{$goods.goods_unit}" name="goods_unit">
            </td>
        </tr>
        <tr>
            <td align="right">生产厂商:</td>
            <td >
                <input type="text" value="{$goods.factory_name}" name="factory_name">
            </td>
        </tr>
        <tr>
            <td align="right">规格:</td>
            <td >
                <input type="text" value="{$goods.product_type}" name="product_type">
            </td>
        </tr>
        <tr>
            <td align="right">处方药标识:</td>
            <td >
                <if condition="$goods.OTC_flag eq 1">
                    &nbsp;<input  type="radio" name="OTC_flag" value="1" checked >是
                    &nbsp;&nbsp;<input  type="radio" name="OTC_flag" value="0" >否
                    <else/>
                    &nbsp;<input  type="radio" name="OTC_flag" value="1" >是
                    &nbsp;&nbsp;<input  type="radio" name="OTC_flag" value="0" checked>否
                </if>
            </td>
        </tr>
        <tr>
            <td align="right">本店售价:</td>
            <td >
                <input type="text" value="{$goods.shop_price}" name="shop_price">
            </td>
        </tr>
        <tr>
            <td align="right">市场售价:</td>
            <td >
                <input type="text" value="{$goods.shop_price}" name="market_price">
            </td>
        </tr>
        <tr>
            <td align="right">虚拟销量:</td>
            <td >
                <input type="text" value="{$goods.sale_num}" name="sale_num">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <textarea name="content" id="content"></textarea>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <input type="submit" value="保存修改">
            </td>
        </tr>
    </table>
</form>
</body>
</html>